package top.vanchor.flexible.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@EqualsAndHashCode(callSuper = false)
public class BackAuthGroupRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限id
     */
    @JsonProperty("groupRuleId")
    @TableId(value = "group_rule_id", type = IdType.AUTO)
    private Integer groupRuleId;

    /**
     * 角色id
     */
    @JsonProperty("groupId")
    @TableField(value = "group_id")
    private Integer groupId;

    /**
     * 权限id
     */
    @JsonProperty("ruleId")
    @TableField(value = "rule_id")
    private Integer ruleId;


}
